package com.yby6.wxpay.controller;

import com.yby6.common.core.AjaxResult;
import com.yby6.wxpay.service.ProductService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 产品表控制层
 *
 * @author yangs
 */
@RestController
@RequestMapping("/api/product")
public class ProductController {
    /**
     * 服务对象
     */
    @Resource
    private ProductService tProductServiceImpl;

    @GetMapping("list")
    public AjaxResult selectOne() {
        return AjaxResult.success(tProductServiceImpl.lambdaQuery().list());
    }

}
